import request from '@/utils/request'

// 查询账号配置列表
export function listCofig(query) {
  return request({
    url: '/bussiness/cofig/list',
    method: 'get',
    params: query
  })
}

// 查询账号配置详细
export function getCofig(id) {
  return request({
    url: '/bussiness/cofig/' + id,
    method: 'get'
  })
}

// 新增账号配置
export function addCofig(data) {
  return request({
    url: '/bussiness/cofig',
    method: 'post',
    data: data
  })
}

// 修改账号配置
export function updateCofig(data) {
  return request({
    url: '/bussiness/cofig',
    method: 'put',
    data: data
  })
}

// 删除账号配置
export function delCofig(id) {
  return request({
    url: '/bussiness/cofig/' + id,
    method: 'delete'
  })
}
